﻿using System;
using System.IO;
using UnityEngine;

// Token: 0x020002C6 RID: 710
[Serializable]
public class CharFileInfoCustomFemale : global::CharFileInfoCustom
{
	// Token: 0x0600114A RID: 4426 RVA: 0x0008C1BC File Offset: 0x0008A3BC
	public CharFileInfoCustomFemale() : base(Enum.GetNames(typeof(global::CharDefine.HairKindFemale)).Length)
	{
		this.sex = 1;
		this.shapeValueFace = new float[global::CharDefine.cf_headshapename.Length];
		this.shapeValueBody = new float[global::CharDefine.cf_bodyshapename.Length - 1];
		this.hairId = new int[this.hairKindNum];
		this.hairColor = new global::HSColorSet[this.hairKindNum];
		this.hairAcsColor = new global::HSColorSet[this.hairKindNum];
		this.MemberInitialize();
	}

	// Token: 0x0600114B RID: 4427 RVA: 0x0008C2D8 File Offset: 0x0008A4D8
	public new virtual void MemberInitialize()
	{
		base.MemberInitialize();
		this.texEyeshadowId = 0;
		this.eyeshadowColor.SetDiffuseRGBA(Color.white);
		this.texCheekId = 0;
		this.cheekColor.SetDiffuseRGBA(Color.white);
		this.texLipId = 0;
		this.lipColor.SetDiffuseRGBA(Color.white);
		this.texMoleId = 0;
		this.moleColor.SetDiffuseRGBA(Color.white);
		this.matEyelashesId = 0;
		this.eyelashesColor.SetDiffuseRGBA(Color.white);
		this.eyelashesColor.hsvDiffuse.S = 1f;
		this.matEyeHiId = 0;
		this.eyeHiColor.SetDiffuseRGBA(Color.white);
		this.texSunburnId = 0;
		this.sunburnColor.SetDiffuseRGBA(Color.white);
		this.matNipId = 0;
		this.nipColor.SetDiffuseRGBA(Color.white);
		this.nipColor.hsvDiffuse.S = 1f;
		this.matUnderhairId = 0;
		this.underhairColor.SetDiffuseRGBA(Color.white);
		this.underhairColor.hsvDiffuse.S = 1f;
		this.nailColor.SetDiffuseRGBA(Color.white);
		this.nailColor.hsvDiffuse.S = 1f;
		this.areolaSize = 0.5f;
		this.bustSoftness = 0.5f;
		this.bustWeight = 0.5f;
		int[] array = new int[4];
		array[1] = 1;
		int[] array2 = array;
		for (int i = 0; i < this.hairId.Length; i++)
		{
			this.hairId[i] = array2[i];
			this.hairColor[i] = new global::HSColorSet();
			this.hairColor[i].hsvDiffuse = new global::HsvColor(30f, 0.5f, 0.7f);
			this.hairColor[i].hsvSpecular = new global::HsvColor(0f, 0f, 0.5f);
			this.hairColor[i].specularIntensity = 0.4f;
			this.hairColor[i].specularSharpness = 0.55f;
			this.hairAcsColor[i] = new global::HSColorSet();
			this.hairAcsColor[i].hsvDiffuse = new global::HsvColor(0f, 0.8f, 1f);
			this.hairAcsColor[i].hsvSpecular = new global::HsvColor(0f, 0f, 0.5f);
			this.hairAcsColor[i].specularIntensity = 0.4f;
			this.hairAcsColor[i].specularSharpness = 0.55f;
		}
		this.name = "カスタム娘";
		this.personality = 0;
	}

	// Token: 0x0600114C RID: 4428 RVA: 0x0008C568 File Offset: 0x0008A768
	public override bool SaveSub(BinaryWriter bw)
	{
		bw.Write(this.texEyeshadowId);
		this.eyeshadowColor.Save(bw);
		bw.Write(this.texCheekId);
		this.cheekColor.Save(bw);
		bw.Write(this.texLipId);
		this.lipColor.Save(bw);
		bw.Write(this.texMoleId);
		this.moleColor.Save(bw);
		bw.Write(this.matEyelashesId);
		this.eyelashesColor.Save(bw);
		bw.Write(this.matEyeHiId);
		this.eyeHiColor.Save(bw);
		bw.Write(this.texSunburnId);
		this.sunburnColor.Save(bw);
		bw.Write(this.matNipId);
		this.nipColor.Save(bw);
		bw.Write(this.matUnderhairId);
		this.underhairColor.Save(bw);
		this.nailColor.Save(bw);
		bw.Write(this.areolaSize);
		bw.Write(this.bustSoftness);
		bw.Write(this.bustWeight);
		return true;
	}

	// Token: 0x0600114D RID: 4429 RVA: 0x0008C680 File Offset: 0x0008A880
	public override bool LoadSub(BinaryReader br, int customVer, int colorVer)
	{
		this.texEyeshadowId = br.ReadInt32();
		this.eyeshadowColor.Load(br, colorVer);
		this.texCheekId = br.ReadInt32();
		this.cheekColor.Load(br, colorVer);
		this.texLipId = br.ReadInt32();
		this.lipColor.Load(br, colorVer);
		this.texMoleId = br.ReadInt32();
		this.moleColor.Load(br, colorVer);
		this.matEyelashesId = br.ReadInt32();
		this.eyelashesColor.Load(br, colorVer);
		this.matEyeHiId = br.ReadInt32();
		this.eyeHiColor.Load(br, colorVer);
		this.texSunburnId = br.ReadInt32();
		this.sunburnColor.Load(br, colorVer);
		this.matNipId = br.ReadInt32();
		this.nipColor.Load(br, colorVer);
		this.matUnderhairId = br.ReadInt32();
		this.underhairColor.Load(br, colorVer);
		this.nailColor.Load(br, colorVer);
		this.areolaSize = global::CharFile.ClampEx(br.ReadSingle(), 0f, 1f);
		this.bustSoftness = global::CharFile.ClampEx(br.ReadSingle(), 0f, 1f);
		this.bustWeight = global::CharFile.ClampEx(br.ReadSingle(), 0f, 1f);
		return true;
	}

	// Token: 0x0600114E RID: 4430 RVA: 0x0008C7D0 File Offset: 0x0008A9D0
	public override bool ModCheckSub()
	{
		return !global::MathfEx.RangeEqualOn(0f, this.areolaSize, 1f) || !global::MathfEx.RangeEqualOn(0f, this.bustSoftness, 1f) || !global::MathfEx.RangeEqualOn(0f, this.bustWeight, 1f);
	}

	// Token: 0x040016FE RID: 5886
	public int texEyeshadowId;

	// Token: 0x040016FF RID: 5887
	public global::HSColorSet eyeshadowColor = new global::HSColorSet();

	// Token: 0x04001700 RID: 5888
	public int texCheekId;

	// Token: 0x04001701 RID: 5889
	public global::HSColorSet cheekColor = new global::HSColorSet();

	// Token: 0x04001702 RID: 5890
	public int texLipId;

	// Token: 0x04001703 RID: 5891
	public global::HSColorSet lipColor = new global::HSColorSet();

	// Token: 0x04001704 RID: 5892
	public int texMoleId;

	// Token: 0x04001705 RID: 5893
	public global::HSColorSet moleColor = new global::HSColorSet();

	// Token: 0x04001706 RID: 5894
	public int matEyelashesId;

	// Token: 0x04001707 RID: 5895
	public global::HSColorSet eyelashesColor = new global::HSColorSet();

	// Token: 0x04001708 RID: 5896
	public int matEyeHiId;

	// Token: 0x04001709 RID: 5897
	public global::HSColorSet eyeHiColor = new global::HSColorSet();

	// Token: 0x0400170A RID: 5898
	public int texSunburnId;

	// Token: 0x0400170B RID: 5899
	public global::HSColorSet sunburnColor = new global::HSColorSet();

	// Token: 0x0400170C RID: 5900
	public int matNipId;

	// Token: 0x0400170D RID: 5901
	public global::HSColorSet nipColor = new global::HSColorSet();

	// Token: 0x0400170E RID: 5902
	public int matUnderhairId;

	// Token: 0x0400170F RID: 5903
	public global::HSColorSet underhairColor = new global::HSColorSet();

	// Token: 0x04001710 RID: 5904
	public global::HSColorSet nailColor = new global::HSColorSet();

	// Token: 0x04001711 RID: 5905
	public float areolaSize = 0.5f;

	// Token: 0x04001712 RID: 5906
	public float bustSoftness = 0.5f;

	// Token: 0x04001713 RID: 5907
	public float bustWeight = 0.5f;

	// Token: 0x04001714 RID: 5908
	static int WIDESLIDER_081;
}
